package com.xxx.mall.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xxx.mall.model.BaseDO;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 库存信息
 * </p>
 *
 * @author 邢晨旭
 * @since 2023-11-24
 */
@Getter
@Setter
@TableName("sku_stock")
public class SkuStock extends BaseDO {

    /**
     * 库存id
     */
    @TableId(value = "stock_id", type = IdType.AUTO)
    private Long stockId;

    /**
     * SKU ID
     */
    @TableField("sku_id")
    private Long skuId;

    /**
     * 实际库存
     */
    @TableField("actual_stock")
    private Integer actualStock;

    /**
     * 锁定库存
     */
    @TableField("lock_stock")
    private Integer lockStock;

    /**
     * 可售卖库存
     */
    @TableField("stock")
    private Integer stock;
}
